package com.aaa.controller;

import com.aaa.entity.DictData;
import com.aaa.fegin.DictFegin;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsPackage: com.aaa.controller
 * @Description:
 * @CreateTime: 2023-04-06  19:23
 * @Author: ql
 */
@RestController
@RequestMapping("check/api/dict")
public class DictController {

    @Autowired
    private  DictFegin dictFegin;


    @GetMapping("findByType/{type}")
    public List<DictData>list(@PathVariable String type){
        return dictFegin.listType(type);
    }

}
